const TokenKey = 'hui-manage-active'

export function getActive() {
  let app = localStorage.getItem(TokenKey)
  if(app)return JSON.parse(app)
  return {}
}

export function setActive(token) {
  return localStorage.setItem(TokenKey, JSON.stringify(token))
}

export function removeActive() {
  return localStorage.removeItem(TokenKey)
}
